package com.example.serverdemo.serviceImpl;

import com.example.serverdemo.bean.HardwareParameterBean;
import com.example.serverdemo.mapper.HardwareMapper;
import com.example.serverdemo.service.HardwareParameterService;
import com.example.serverdemo.utils.log.PrintLogUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HardwareParameterServiceImpl implements HardwareParameterService {

    @Autowired
    private HardwareMapper hardwareMapper;
    @Override
    public HardwareParameterBean queryHardwareParameter(String deviceId) {
        return hardwareMapper.queryHardwareParameter(deviceId);
    }

    @Override
    public int addHardwareParameter(HardwareParameterBean hardwareParameter) {
        return hardwareMapper.addHardwareParameter(hardwareParameter);
    }

    @Override
    public int updateHardwareParameter(HardwareParameterBean hardwareParameter) {
        return hardwareMapper.updateHardwareParameter(hardwareParameter);
    }
}
